package dataconn;
import java.sql.*;
public class test_function {
	public int getId(String name)
	{
		int id ;
		try{
			String sql="{ call getAdmID(?) }";
			dataconn Dataconn1=new dataconn();
			Dataconn1.Create();
			CallableStatement cs=Dataconn1.CSt_SQL(sql);
			cs.setString(1, name);
			id=cs.getInt(1);
			}catch(Exception e){
				e.printStackTrace();
				return 0;
			}
		return id;
	}
}
